package com.atlin.project.mapper;

import com.atlin.project.model.domain.QuotationData;
import com.atlin.project.model.domain.QuotationStatistics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author atlin
 * @description 针对表【quotation_data(语录数据表)】的数据库操作Mapper
 * @createDate 2024-07-11 09:26:50
 * @Entity com.atlin.project.model.domain.QuotationData
 */
public interface QuotationDataMapper extends BaseMapper<QuotationData> {

    /**
     * 查询今日数据量
     *
     * @return
     */
    Long selectTodayTotal();

    /**
     * top #{fromAddrQueryNum}  来源
     *
     * @param fromAddrQueryNum
     * @return
     */
    List<QuotationStatistics.FromAddrStatistics> selectTopFromAddr(@Param("fromAddrQueryNum") Integer fromAddrQueryNum);

    /**
     * 来自谁
     *
     * @param fromWhoQueryNum
     * @return
     */
    List<QuotationStatistics.FromWhoStatistics> selectTopFromWho(@Param("fromWhoQueryNum") Integer fromWhoQueryNum);
}




